package com.sie.framework.bean;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
/**
 * 保存是否信息的Bean
 * 
 * @author gang
 * 
 */
public class IdentityBean implements Parcelable {
    /**
     * 姓名
     */
    public String fullName;
    /**
     * 性别 1 男 0 女
     */
    public String sex;
    /**
     * 证件照片
     */
    public Bitmap icon;
    /**
     * 民族
     */
    public String nation;

    /**
     * 生日
     */
    public String birthday;

    /**
     * 证件上的地址
     */
    public String idAddr;

    /**
     * 证件号码
     */
    public String idNo;

    /**
     * 发证机关
     */
    public String idOrg;

    /**
     * 证件有效期 开始 时间格式 yyyyMMdd
     */
    public String beginDate;

    /**
     * 证件有效期 结束
     */
    public String endDate;
    
    public byte[] fingerByte;


    public String reserveA;   //港澳身份证预留区A

    public String reserveB;   //港澳身份证预留区B

    public String reserveC;   //港澳身份证预留区C

    public String issuingNo;   //港澳通行证 签发次数

    public String passportNo;  //港澳身份证 通行证号码

    public String cardType; //证件类型
    
    public String cardVer;//证件版本

    public String  countryCode;//国家代码

    public String enName;//英文名称

    

    @Override
    public int describeContents() {
        return 0;
    }

    
    public IdentityBean() {
    }
    
    public IdentityBean(Parcel source) {
        source.readString();
        source.readString();
        source.readParcelable(getClass().getClassLoader());
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readByteArray(fingerByte);
        source.readString();
        source.readString();
        source.readString();
        source.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(fullName);
        dest.writeString(sex);
        dest.writeParcelable(icon, flags);
        dest.writeString(nation);
        dest.writeString(birthday);
        dest.writeString(idAddr);
        dest.writeString(idNo);
        dest.writeString(idOrg);
        dest.writeString(beginDate);
        dest.writeString(endDate);
        dest.writeByteArray(fingerByte);
        dest.writeString(cardType);
        dest.writeString(cardVer);
        dest.writeString(countryCode);
        dest.writeString(enName);
    }

    public static final Creator<IdentityBean> CREATOR = new Creator<IdentityBean>() {
        public IdentityBean createFromParcel(Parcel source) {
            return new IdentityBean(source);
        }

        public IdentityBean[] newArray(int size) {
            return new IdentityBean[size];
        }
    };
}
